package cn.eonshine.cuba.inf.modular.log.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.eonshine.cuba.inf.modular.log.entity.Log;
import cn.eonshine.cuba.inf.modular.log.entity.LogDetail;
import cn.eonshine.cuba.inf.modular.log.mapper.LogDetailMapper;
import cn.eonshine.cuba.inf.modular.log.service.ILogDetailService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Alan
 * @since 2018-08-11
 */
@Service
@Transactional
public class LogDetailServiceImpl extends ServiceImpl<LogDetailMapper, LogDetail> implements ILogDetailService {

	public int deleteBatchByKeepDays(Date keepDay) {
		return this.baseMapper.deleteBatchByKeepDays(keepDay);
	}

	@Override
	public List<LogDetail> selectCleanLogDetails(List<Log> list) {
		return this.baseMapper.selectCleanLogDetails(list);
	}

}
